﻿@using Dal.Models
@using Webdiyer.WebControls.Mvc
@model Web.Controllers.QueryModel
@{
    Layout = null;
    ViewBag.Nav = 3;
    ViewBag.Menu = 0;
    int ti = 1;
}
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title></title>
    @Html.Partial("meta")
</head>
<body id="b_main">
    @Html.Partial("header")
    <!--/end #header-->
    <div id="wrapper">
        <!--holds pretty much everything-->
        <div id="content">
            @Html.Partial("nav")
            @using (Html.BeginForm("manage", "doc", FormMethod.Post, new { @class = "broom_form", id = "form1", style = "margin-left: 30px;" }))
            {
                if (ViewBag.Record != null && ViewBag.Record.Count > 0)
                {
                <table cellspacing="0" summary="table" class="broom_table">
                    <tbody>
                        <tr class="odd titlebold">
                            <td>会议编号
                            </td>
                            <td>参与电话
                            </td>
                            <td>答案
                            </td>
                            <td>参与时间
                            </td>
                            <td>是否中奖
                            </td>
                        </tr>
                        @foreach (var DocForShow in (List<MEETLIST>)ViewBag.Record)
                        {
                            <tr class="@((ti++) % 2 == 0 ? "odd" : "even")">
                                <td>
                                    @DocForShow.NUM
                                </td>
                                <td>
                                    @DocForShow.PHONE
                                </td>
                                <td style="text-align: center">
                                    @DocForShow.ANSER
                                </td>
                                <td style="text-align: center">
                                    @DocForShow.RTIME
                                </td>
                                <td style="text-align: center">
                                    @DocForShow.ZJ
                                </td>
                            </tr>
                        }
                    </tbody>
                </table>

                
                <br />
                <a href="/doc/DetailExport?id=@(Request["id"])">导出数据</a>
                <text>    &nbsp; &nbsp;</text> 
                <a href="javascript:void(0)" onclick="window.print()">打印当前页面</a>
                }
                else
                {
                <div class="container1">
                    <div class="notification error">
                        <a class="close" href="#"></a><em>
                            <img alt="" src="/assets/img/icons/cross_circle.png">未搜索到数据,请尝试其他搜索条件</em>
                    </div>
                </div>
                }
            }
        </div>
    </div>
    <div class="clear">
    </div>
</body>
</html>
